#!/bin/bash

echo "================================="
echo "commit all source to oschina..."
echo "================================="

echo "1-commit and push ESP8266App."
git add ./ -A
git commit -a -m "update ..."
git push

#echo "2-commit and push esp-open-sdk."
#cd esp-open-sdk
#git commit and push
#cd ..
echo "2-commit and push esp_mqtt."
cd esp_mqtt
git add ./ -A
git commit -a -m "update ..."
git push
cd ..

echo "3-commit and push esp_mqtt_oled."
cd esp_mqtt_oled
git add ./ -A
git commit -a -m "update ..."
git push
cd ..

echo "4-commit and push esp_iot_rtos_sdk."
cd espressif/esp_iot_rtos_sdk
git add ./ -A
git commit -a -m "update ..."
git push
cd ../../

echo "5-commit and push esp8266_at."
cd espressif/esp8266_at
git add ./ -A
git commit -a -m "update ..."
git push
cd ../../

echo "6-commit and push micropython for esp8266."
cd micropython
git add ./ -A
git commit -a -m "update ..."
git push
cd ..

echo "7-commit and push nodemcu."
cd nodemcu/nodemcu-firmware
git add ./ -A
git commit -a -m "update ..."
git push
cd ../../

echo "8-commit and push nodelua."
cd nodelua
git add ./ -A
git commit -a -m "update ..."
git push
cd ..

echo "9-commit and push frankenstein."
cd esp8266-frankenstein
git add ./ -A
git commit -a -m "update ..."
git push
cd ..

